﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true"
    CodeBehind="BillReturnVisitSetting.aspx.cs" Inherits="Runda.CMS.Portal.ContractFollowUp.BillReturnVisitSetting" %>

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">

    <script src="../Content/global.js" type="text/javascript"></script>

    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <script src="../Content/lookup/Lookup.js" type="text/javascript"></script>

    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script language="javascript" src="../Content/Detail.js"></script>
    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>

    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../Content/jquery-1.3.2.js"></script>
    <script type="text/javascript">
       function OpenDetail(id) {
            openMyWin('MaintainBasic.aspx?RegisterID=' + id, 'MaintainInfo', 800, 600);
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

    <script type="text/javascript">
        function onChanged() {
            var linkBill = document.getElementById('<%=chkRandom.ClientID %>').checked;
            if (linkBill == true) {
                document.getElementById('tr1').style.display = "block";
                document.getElementById('tr2').style.display = "none";
            } else {
                document.getElementById('tr1').style.display = "none";
                document.getElementById('tr2').style.display = "block";
            }
        }
        window.onload = function() {
        onChanged();
        }
    </script>

    <div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0"
                            width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60">
                                <tr>
                                    <td style="color: #ffffff">
                                        <b>快速查询</b>
                                    </td>
                                    <td class="icMenu mnuRight" nowrap>
                                    </td>
                                </tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery"  height="40">
                    <td class="wizBox1"  colspan="7">
                        <table id="__appFind_tbQuery1" style="table-layout: fixed; font-size: 9pt" height="100%"
                          cellspacing="0" cellpadding="3" width="80%">
                             
                            <tbody>
                            <tr>
                                <td style="width:15%">
                                    按时间段查询：
                                </td>
                                <td  style="width:45%">
                                    <rad:RadDatePicker ID="MaintainDateFrom" runat="server" Culture="Chinese (People's Republic of China)"
                                        Skin="WebBlue" Width="140px">
                                        <DateInput Skin="WebBlue">
                                        </DateInput>
                                        <Calendar Skin="WebBlue">
                                        </Calendar>
                                    </rad:RadDatePicker>
                                    ~<rad:RadDatePicker ID="MaintainDateTo" runat="server" Culture="Chinese (People's Republic of China)"
                                        Skin="WebBlue" Width="140px">
                                        <DateInput Skin="WebBlue">
                                        </DateInput>
                                        <Calendar Skin="WebBlue">
                                        </Calendar>
                                    </rad:RadDatePicker>
                                </td>
                                <td  style="width:15%" >
                                    是否随即抽取：
                                </td>
                                <td  style="width:25%">
                                    <asp:CheckBox ID="chkRandom" runat="server" onclick="onChanged();" Width="30px" 
                                        BorderStyle="None" />                                    
                                </td>
                            </tr>
                           
                            <tr id="tr1" style="display: none">
                                <td >
                                    回访数量：
                                </td>
                                <td>
                                    <rad:RadNumericTextBox ID="VisitCount" runat="server">
                                    </rad:RadNumericTextBox>
                                </td>
                            </tr>
                            <tr id="tr2">
                                <td >
                                    客户：
                                </td>
                                <td>
                                    <table cellpadding="0" cellspacing="0" style="table-layout: fixed;" width="100%">
                                        <tr>
                                            <td nowrap>
                                                <div class="lu" detailpage="/SyncManage/CustomerInfo.aspx?CustomerID=">
                                                    <span id="hiddenuserName" runat="server" class="lui" oid="" onclick="openlui();">
                                                    </span>&nbsp;</div>
                                            </td>
                                            <td style="text-align: right;" width="25">
                                                <img class="lu2" features="dialogWidth:450px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;location:no;"
                                                    lookupbrowse="" lookupclass="" lookupcustom="/lookup/selectcustomeroflookup.aspx?title=customer&rank=all"
                                                    lookupstyle="single" src="../Images/btn_off_lookup.gif" /><input id="hiddenUserID"
                                                        runat="server" class="lu" maptype="lu" name="customerGUID" type="hidden" value="" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td >
                                    执行人：
                                </td>
                                <td>
                                    <table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
                                        <tr>
                                            <td nowrap>
                                                <div class="lu">
                                                    <span class="lui" oid="" onclick="openlui();"></span>
                                                    <asp:Label ID="employeeName" runat="server"></asp:Label></div>
                                            </td>
                                            <td width="25" style="text-align: right;">
                                                <img class="lu2" lookupbrowse="" lookupstyle="single" lookupclass="" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                                    lookupcustom="/Lookup/selectcustomeroflookup.aspx?title=user&department=maintain"
                                                    src="/Images/btn_off_lookup.gif"><input maptype="lu" class="lu" type="hidden" name="employeeGUID"
                                                        value="" runat="server" id="employeeGUID">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align = "right">
                                    <asp:Button ID="btnSearch" runat="server" Text="查找" CssClass="button" OnClick="btnSearch_Click" />
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="Container">
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>回访列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <asp:Repeater ID="RepeaterEvaluation" runat="server" OnItemCommand="RepeaterEvaluation_ItemCommand"
            OnItemDataBound="RepeaterEvaluation_ItemDataBound">
            <HeaderTemplate>
                <table id="grid" class="grid" cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr class="header">
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        工作单据号</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        执行人</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        客户</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        服务项</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        录入时间</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        录入人</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        操作</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td width="14">
                                <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif"
                                    AlternateText="刷新列表" />
                            </td>
                        </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="data" ondblclick="OpenDetail('<%#Eval("RegisterID") %>')" onclick="handleClick()">
                    <td>
                        <asp:Label ID="maintainPaperNum" runat="server" Text='<%# Eval("PaperInvoicesNo") %>'></asp:Label><asp:Label
                            ID="MaintainID" runat="server" Text='<%# Eval("MaintainID") %>' Visible="false"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="MaintainerName" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:HyperLink runat="server" ID="hlcustomer" Target="_blank" NavigateUrl='' ></asp:HyperLink>
                    </td>
                    <td>
                        <asp:Label ID="InstrumentName" runat="server"></asp:Label>
                    </td>
                    <td>
                        <%# Eval("CreatedOn")  %>
                    </td>
                    <td>
                        <asp:Label ID="CreatedBy" runat="server" Text='<%# Eval("CreatedBy")  %>' Visible="false"></asp:Label>
                        <asp:Label ID="CreatedByName" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:HyperLink runat="server" ID="link1" Text="评定" Target="_blank" NavigateUrl='<%#"BillReturnVisit.aspx?MaintainID="+Eval("MaintainID") %>'></asp:HyperLink>
                    </td>
                    <td>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
